<script type="text/javascript">

jQuery(function() {
  jQuery.ja.setValue("#form #is_default","${O.objGroup.is_default?if_exists}");
});

 function save() {
  jQuery('#form').jaAction({
    filter : [
      { target : "#title", params : "&filter=notnull&title=그룹명" }
    ],
    param : _mei_gb_params,
    ask : 'update' , 
    redirect : "./dispGroupAdminList.me?" + _mei_gb_params
  });
}

//]]></script>

<div id="sub_column_content">
<#include "admin.sub.html">

<form id="form" method="post" action="./procGroupAdminInsert.me">
<input type="hidden" id="group_orl" name="group_orl" value="${O.objGroup.group_orl?if_exists?html}" />


  <div class="document-write">
  <table class="table-write" summary="document write" border="1" cellspacing="0">
  <colgroup>
  <col width="100"><col>
  </colgroup>
  <tbody>

    <tr>
    <th scope="row">그룹명</th>
    <td>
      <div class="item">
        <input type="text" class="i_text w250" id="title" name="title" value="${O.objGroup.title?if_exists?html}" />
      </div>
    </td>
    </tr>

    <tr>
    <th scope="row">기본그룹</th>
    <td>
      <div class="item">
        <input type="checkbox" id="is_default" name="is_default" value="Y" class="i_check" /> <label for="is_default">회원가입시 기본 그룹으로 설정됩니다.</label>
      </div>
    </td>
    </tr>

    <tr>
    <th scope="row">설명</th>
    <td>
      <div class="item">
        <textarea class="i_text w95p" id="description" name="description" cols="50" rows="5">${O.objGroup.description?if_exists}</textarea>
      </div>
    </td>
    </tr>

  </tbody>
  </table>
  </div>

  <div class="document-foot-menu">
    <span class="button medium icon"><a href="./dispGroupAdminList.me${param.get('?group_orl=')?html}"><span class="iconset list"></span>목록</a></span>
    <span class="button medium icon"><button type="button" onclick="save();"><span class="iconset accept"></span>저장</button></span>
  </div>

</form>
</div>